import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
	{
		path: '/',
		redirect: '/baidu/socket',
	},
	{
		path: '/baidu/text2audio',
		name: 'BaiduText2Audio',
		component: () => import('../views/baidu/短文本转语音.vue'),
	},
	{
		path: '/baidu/audio2text',
		name: 'BaiduAudio2Text',
		component: () => import('../views/baidu/语音识别.vue'),
	},
	{
		path: '/baidu/socket',
		name: 'BaiduSocket',
		component: () => import('../views/baidu/实时语音识别.vue'),
	},
]

const router = new VueRouter({
	routes,
})

export default router
